package com.situ.week1.day4;

public class Student {
    //属性、成员变量
    public int id;
    private String name;
    //静态变量
    public static String country = "中国";

    //成员方法、实例方法、非静态方法
    public void show() {
        System.out.println("Student.show");
        print();
    }

    //静态方法
    public static void print() {
        System.out.println("Student.print");
        //Non-static method 'show()' cannot be referenced from a static context
        //show();
        //this.name = "lisi";
        country = "zhongguo";
        //this.name = "ss";
    }

    public static void test() {
        test();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
